package com.googlecode.crawlerextractor.crawler4j;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;



public class Test {

	public static void main(String[] args) throws ClassNotFoundException, SQLException {
		Class.forName("com.p6spy.engine.spy.P6SpyDriver");
		String url="jdbc:mysql://localhost/crawler";
	    Connection conn = DriverManager.getConnection(url, "root", "");
	    
	    System.out.println("Debut");
	    Statement st = conn.createStatement();

        String query = "Insert into test values('name')";

        st.executeUpdate(query);
        conn.commit();    
	    System.out.println("Fin");

	}
}
